<?php
class MediaDesc extends AppModel{
    public $useTable  = 'media_desc';
    public $lang_code = 'vn';
    
    
    function add($data = array())
    {
       return($this->save($data));
    }
    
    function edit($media_id = "", $lang_code = "", $data = array())
    {
       return $this->updateAll(
		    $data, 
		    array('media_id' => $media_id, 'lang_code' => $lang_code)
		);
    }
}